import java.util.*;

/**
 * @author LKQ
 * @date 2022/6/14 17:51
 * @description
 */
public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        while (sc.hasNext()) {
            int n = sc.nextInt();
            int cntP = 0, cntN = 0;
            double sum = 0;
            for (int i = 0; i < n; i++) {
                int a = sc.nextInt();
                if (a > 0) {
                    sum += a;
                    cntP++;
                }
                if (a < 0) {
                    cntN++;
                }
            }
            double avg = cntP == 0 ? 0 : sum / cntP;
            System.out.print(cntN + " " + String.format("%.1f", avg));
        }
    }
}
